import  http  from '@/utils/http'

/**
 * @description: 获取-一级分类列表
 * @param {*}
 * @return {*}
 */
export const getTopCategoryAPI = (id) =>{
  return http({
    url:'/category',
    params: {
      id
    }
  })
}

/**
 * @description: 获取二级分类列表数据
 * @param {*} id 分类id 
 * @return {*}
 */
export const getCategoryFilterAPI = (id) => {
  return http({
    url: '/category/sub/filter',
    params: {
      id
    }
  })
}

